package com.baizhi.shane.shane.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @author 闻柏智
 * @date 2023/10/26 20:59:46
 */
@ApiModel("回答评论DTO")
@Data
public class CommentAnswerDTO {
    @ApiModelProperty("主键ID")
    private Long id;

    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("评论人ID")
    private Long userId;
    @ApiModelProperty(value = "评论人的图片URL")
    private String userImageUrl;
    @ApiModelProperty(value = "评论人的昵称")
    private String userNickname;

    @ApiModelProperty("被回复人ID")
    private Long replierUserId;
    @ApiModelProperty(value = "被回复人的图片URL")
    private String replierImageUrl;
    @ApiModelProperty(value = "被回复人的昵称")
    private String replierNickname;

    @ApiModelProperty("回答ID")
    private Long answerId;

    @ApiModelProperty("评论级别,1一级，2二级......")
    private Long commentLevel;

    @ApiModelProperty("上级评论ID")
    private Long parentId;

    @ApiModelProperty("评论内容")
    private String content;

}
